home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / METAKIT.ZIP / EXAMPLES / CATFISH / SCANDISK.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-09  |  1.1 KB  |  30 lines

  1. //    scandisk.h  -  recursive directory scanner sample code
  2. //
  3. //    This is a part of the MetaKit library.
  4. //    Copyright (c) 1996 Meta Four Software.
  5. //    All rights reserved.
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8.     // The following properties are used in this code
  9. extern c4_ViewProp        pFiles;
  10. extern c4_IntProp        pParent, pSize, pDate;
  11. extern c4_StringProp    pName;
  12.  
  13.     // Derive from this mixin class to handle status updates and idle time
  14. class cStatusHandler
  15. {
  16. public:
  17.     virtual bool UpdateStatus(const char* text);
  18. };
  19.     
  20.     // Scan a directory tree and return a corresponding structure for it.
  21.     // The data structure of the object returned by this routine is:
  22.     //        [parent:i, name:s, files [name:s, size:i, date:i]]
  23. extern c4_View fScanDirectories(const char* path_, cStatusHandler* =0);
  24.  
  25.     // Reconstruct the full path name from a subdirectory index in the tree
  26. extern CString fFullPath(c4_View& dirs_, int dirNum_);
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // $Id: scandisk.h,v 1.2 1996/12/04 14:49:35 jcw Exp $
  30.